<!DOCTYPE html>
<html>
<head>
  <title>RailsApp</title>
  <%= stylesheet_link_tag :all %>
  <%= javascript_include_tag :defaults %>
  <%= csrf_meta_tag %>
</head>
<body>
<% if user_signed_in? %>
  <%= governor_header %>
  <%= link_to 'new article', new_article_path %> |
  <%= link_to 'sign out', destroy_user_session_path %>
<% else %>
  <%= link_to 'sign in', new_user_session_path %> |
  <%= link_to 'sign up', new_user_registration_path %>
<% end %>
| <%= link_to 'articles', articles_path %>

<%= yield %>

</body>
</html>
